﻿<!DOCTYPE html>
<html class="no-js css-menubar" lang="zh-cn">

<head>
    <title>弹窗子页面</title>
    <meta charset="utf-8">
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <!-- 移动设备 viewport -->
    <meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" name="viewport">
    <meta content="火星科技 http://cesium.marsgis.cn " name="author">
    <!-- 360浏览器默认使用Webkit内核 -->
    <meta content="webkit" name="renderer">
    <!-- Chrome浏览器添加桌面快捷方式（安卓） -->
    <link href="../../img/favicon/favicon.png" rel="icon" type="image/png">
    <meta content="yes" name="mobile-web-app-capable">
    <!-- Safari浏览器添加到主屏幕（IOS） -->
    <link href="img/favicon/apple-touch-icon.png" rel="icon" sizes="192x192">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="火星科技MarsGIS" name="apple-mobile-web-app-title">
    <!-- Win8标题栏及ICON图标 -->
    <link href="../../img/favicon/apple-touch-icon.png" rel="apple-touch-icon-precomposed">
    <meta content="../../img/favicon/app-icon72x72@2x.png" name="msapplication-TileImage">
    <meta content="#62a8ea" name="msapplication-TileColor">

    <!-- 第3方lib引入 -->
    <script include="jquery,jquery.mCustomScrollbar,bootstrap,echarts,admui-frame" libpath="../../lib/" src="../../lib/include-lib.js?time=20190418"
            type="text/javascript"></script>
    <link href="../../css/widget-win.css" rel="stylesheet" />
</head>
<body style="padding:5px;text-align:center;">

    <div>2个弹窗，交互示例</div>

    <div class="btn-group" role="group" style="margin-bottom:10px;">
        <button class="btn btn-primary  btn-sm  active" id="btn1" type="button">
            视角切换到南京
        </button>
        <button class="btn btn-primary  btn-sm" id="btn2" type="button">
            视角切换到合肥
        </button>

        <button class="btn btn-primary  btn-sm" id="btn3" type="button">
            调用右侧面板
        </button>
    </div>


    <div id="lblName">viewLeft</div>




    <!--页面js-->
    <script>
        var thisWidget;

        //当前页面业务
        function initWidgetView(_thisWidget) {
            thisWidget = _thisWidget;

            if (thisWidget.config && thisWidget.config.style) {//适应不同样式
                $("body").addClass(thisWidget.config.style);
            }


            $("#btn1").click(function () {
                thisWidget.testCenterAt1();

            });
            $("#btn2").click(function () {
                thisWidget.testCenterAt2();

            });

            $("#btn3").click(function () {
                thisWidget.viewWindowRight.testShowText('我是从左侧面板调用的' + new Date());

            });

        }


        function testShowText(text) {
            $("#lblName").html(text);

        }

    </script>
</body>
</html>
